<template>
  <HuilanBasic hasTab>
    <el-tabs v-model="activeName"  @tab-click="handleClick">
      <el-tab-pane :label="$t('knowledgeTest.healthAssessment')" name="first">
        <HealthAssessment v-if="activeName == 'first'"/>
      </el-tab-pane>
      <el-tab-pane :label="$t('knowledgeTest.databaseDetection')" name="second">
       <DatabaseDetection v-if="activeName == 'second'"/>
      </el-tab-pane>
    </el-tabs>
  </HuilanBasic>
</template>
<script>
import HealthAssessment from "./healthAssessment.vue";
import DatabaseDetection from "./databaseDetection.vue"
export default {
  data() {
    return {
      activeName: 'first'
    }
  },
  components: {
    HealthAssessment,
    DatabaseDetection
  }
}
</script>
<style lang="scss" scoped>
/deep/.el-tabs {
  height: calc(100% - 20px);
  .el-tabs__content {
    height: calc(100% - 35px);
    overflow-y: scroll;
    .el-tab-pane {
      height: 100%;
    }
  }
}
/deep/#pane-first {
  margin: 0 20px !important;
}
</style>
